package com.example.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.security.SecurityScheme;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "返回结果")
public class RestResult<T> {

    @Schema(description = "状态码")
    private Long code;

    @Schema(description = "信息")
    private String msg;

    @Schema(description = "数据")
    private T data;

}
